
// 动态路由，需要配置权限
export const dynamicRoutes = [

  
      // 工具列表
      {
        path: "list",
        name: "list",
        // component: Layout,
        redirect: "/list/video",
        meta: { title: "工具列表", icon: "DataLine" },
        children: [
          {
            path: "todo",
            component: () => import("@/views/list/todo/index.vue"),
            name: "todo",
            meta: { title: "记事本",hidden: false,  },
          },
        ],
      },
       // 商品信息
  {
    path: "product",
    name:"product",
    redirect: "product/detail",
    meta: { title: "商品管理", hidden: false,icon: "DataLine"},
    children: [
      {
        path: "list", // 修改为根路由的一部分
        component: () => import("@/views/product/list/index.vue"),
        name: "ListPage",
        meta: { title: "商品列表",hidden: false, },
      },
      {
        path: 'details/:id',
        component: () => import("@/views/product/details/index.vue"),
        name: 'Details',
        props: true,
        meta: { title: "商品详情",hidden: true, },
        hidden: true,
      },
      {
        path: "order",
        component: () => import("@/views/product/order/index.vue"),
        name: "order",
        meta: { title: "订单列表",hidden: false, },
      },
    ],
  },

  // 用户信息
  {
    path: "users",
    name:"users",
    redirect: "users/user",
    meta: { title: "用户管理",hidden: false, icon: "DataLine" },
    children: [
      {
        path: "userarr",
        component: () => import("@/views/users/userarr/index.vue"),
        name: "userarr",
        meta: { title: "用户列表",hidden: false, },
      },
      {
        path: "user",
        component: () => import("@/views/users/user/index.vue"),
        name: "user",
        meta: { title: "个人信息",hidden: false, },
        props: true, // 允许我们将路由参数作为props传递给组件
      },
     
    ],
  },
 
  
]
